package com.ruoyi.service.impl;

import org.springframework.stereotype.Service;

import com.ruoyi.entity.po.TVisionVote;
import com.ruoyi.mapper.TVisionVoteMapper;
import com.ruoyi.service.IVisionVoteService;

import lombok.RequiredArgsConstructor;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

@Service
@RequiredArgsConstructor(onConstructor_ = {@Autowired})
public class VisionVoteServiceServiceImpl implements IVisionVoteService {
    
    private final TVisionVoteMapper tVisionVoteMapper;

    @Override
    public int insertTVisionVote(TVisionVote visionVote) {
        return tVisionVoteMapper.insertTVisionVote(visionVote);
    }

    @Override
    public int updateTVisionVote(TVisionVote visionVote) {
        return tVisionVoteMapper.updateTVisionVote(visionVote);
    }

    @Override
    public int deleteTVisionVote(Integer id) {
        return tVisionVoteMapper.deleteTVisionVote(id);
    }

    @Override
    public List<TVisionVote> selectTVisionVoteList(TVisionVote visionVote) {
        return tVisionVoteMapper.selectTVisionVoteList(visionVote);
    }

    @Override
    public TVisionVote selectTVisionVoteById(Long id) {
        return tVisionVoteMapper.selectTVisionVoteById(id);
    }

    @Override
    public int deleteTVisionVotes(Integer[] ids) {
        return tVisionVoteMapper.deleteTVisionVotes(ids);
    }
}


